-- GENERATED SPELL FOR [Phantom Valet] --


function spell0_16408(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(29584,pUnit)
pUnit:RegisterEvent('Sorts_16408', 20285, 1)
end

function Sorts_16408(pUnit, Event)
local choix_sorts_16408 = math.random(0, 0)
if choix_sorts_16408 == 0 then
pUnit:RegisterEvent('spell0_16408', 1, 1)
end
end

function mob16408_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16408', math.random(1500, 3000), 1)
end

function mob16408_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16408_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16408_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16408, 1, 'mob16408_Action')
RegisterUnitEvent(16408, 2, 'mob16408_Leave')
RegisterUnitEvent(16408, 3, 'mob16408_Kill')
RegisterUnitEvent(16408, 4, 'mob16408_Die')
